export const OPTYPE_OPTIONS = [
  {
    value: "1",
    label: "单点控制"
  },
  {
    value: "2",
    label: "批量控制"
  },
  {
    value: "3",
    label: "应急控制"
  },
  {
    value: "4",
    label: "预置控制"
  },
  {
    value: "5",
    label: "自动控制-智能运维"
  }
];
export const OPER_OPTIONS = [
  {
    value: "0",
    label: "待下发"
  },
  {
    value: "1",
    label: "已下发"
  },
  {
    value: "2",
    label: "已执行"
  },
  {
    value: "3",
    label: "执行失败"
  },
  {
    value: "4",
    label: "解除"
  }
];
export const TABLE_COLUMNS = [
  {
    title: "序号",
    type: "index",
    key: "id",
    width: 65,
    align: "center"
  },
  {
    title: "操作类型",
    key: "opLabel"
  },
  {
    title: "控制账号",
    key: "opusername"
  },
  {
    title: "用户名称",
    key: "username"
  },
  {
    title: "设备类型",
    key: "devtype"
  },
  {
    title: "设备名称",
    key: "devname"
  },
  {
    title: "操作值",
    key: "opvalue"
  },
  {
    title: "生效时间",
    key: "controltime"
  },
  {
    title: "执行结果",
    key: "operLabel"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
